package com.dong.reward.dao;


import com.dong.reward.po.RewardPo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface RewardDao {

    @Insert("insert into reward (order_id,status,amount,date) values (#{orderId},#{status},#{amount},#{date})")
    @Options(useGeneratedKeys = true,keyProperty = "id")
    void insert(RewardPo rewardPo);
}
